package com.lxmes.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 质检不合格单对象 nc_quality_deficiency
 * 
 * @author lx
 * @date 2023-06-01
 */
@ApiModel(value = "NcQualityDeficiency", description = "质检不合格单对象")    
public class NcQualityDeficiency extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("${column.columnComment}")
    private Long id;

    /** 公司名称 */
    @Excel(name = "公司名称")
    @ApiModelProperty("公司名称")
    private String factoryName;

    /** 公司代码 */
    @Excel(name = "公司代码")
    @ApiModelProperty("公司代码")
    private String factoryCode;

    /** 质检类型 */
    @Excel(name = "质检类型")
    @ApiModelProperty("质检类型")
    private String inspectionType;

    /** 报检编号 */
    @Excel(name = "报检编号")
    @ApiModelProperty("报检编号")
    private String inspectionNumber;

    /** 入库单号 */
    @Excel(name = "入库单号")
    @ApiModelProperty("入库单号")
    private String warehouseEntryNumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String materialName;

    /** 物料子编号 */
    @Excel(name = "物料子编号")
    @ApiModelProperty("物料子编号")
    private String materialSubcode;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    @ApiModelProperty("供应商名称")
    private String supplierName;

    /** 物料单位 */
    @Excel(name = "物料单位")
    @ApiModelProperty("物料单位")
    private String materialUnit;

    /** 条码号 */
    @Excel(name = "条码号")
    @ApiModelProperty("条码号")
    private String barcodeNumber;

    /** 批次 */
    @Excel(name = "批次")
    @ApiModelProperty("批次")
    private String batchNumber;

    /** 入库数量 */
    @Excel(name = "入库数量")
    @ApiModelProperty("入库数量")
    private BigDecimal warehouseQuantity;

    /** 库位编码 */
    @Excel(name = "库位编码")
    @ApiModelProperty("库位编码")
    private String storageLocationCode;

    /** 库位数量 */
    @Excel(name = "库位数量")
    @ApiModelProperty("库位数量")
    private BigDecimal storageLocationQuantity;

    /** 质检控制 */
    @Excel(name = "质检控制")
    @ApiModelProperty("质检控制")
    private String qualityControl;

    /** 质检节点 */
    @Excel(name = "质检节点")
    @ApiModelProperty("质检节点")
    private String qualityNode;

    /** 质检工序 */
    @Excel(name = "质检工序")
    @ApiModelProperty("质检工序")
    private String qualityProcess;

    /** 检验项目 */
    @Excel(name = "检验项目")
    @ApiModelProperty("检验项目")
    private String inspectionItem;

    /** 抽检数量 */
    @Excel(name = "抽检数量")
    @ApiModelProperty("抽检数量")
    private BigDecimal samplingQuantity;

    /** 检验地点 */
    @Excel(name = "检验地点")
    @ApiModelProperty("检验地点")
    private String inspectionLocation;

    /** 质检记录编号 */
    @Excel(name = "质检记录编号")
    @ApiModelProperty("质检记录编号")
    private String recordNumber;

    /** 质检员工号 */
    @Excel(name = "质检员工号")
    @ApiModelProperty("质检员工号")
    private String inspectorEmployeeId;

    /** 质检员姓名 */
    @Excel(name = "质检员姓名")
    @ApiModelProperty("质检员姓名")
    private String inspectorName;

    /** 质检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "质检时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("质检时间")
    private Date inspectionTime;

    /** 质检结果 */
    @Excel(name = "质检结果")
    @ApiModelProperty("质检结果")
    private String inspectionResult;

    /** 审核人 */
    @Excel(name = "审核人")
    @ApiModelProperty("审核人")
    private String auditor;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("审核时间")
    private Date auditTime;

    /** 结果应用 */
    @Excel(name = "结果应用")
    @ApiModelProperty("结果应用")
    private String resultApplication;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setFactoryCode(String factoryCode) 
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode() 
    {
        return factoryCode;
    }
    public void setInspectionType(String inspectionType) 
    {
        this.inspectionType = inspectionType;
    }

    public String getInspectionType() 
    {
        return inspectionType;
    }
    public void setInspectionNumber(String inspectionNumber) 
    {
        this.inspectionNumber = inspectionNumber;
    }

    public String getInspectionNumber() 
    {
        return inspectionNumber;
    }
    public void setWarehouseEntryNumber(String warehouseEntryNumber) 
    {
        this.warehouseEntryNumber = warehouseEntryNumber;
    }

    public String getWarehouseEntryNumber() 
    {
        return warehouseEntryNumber;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setMaterialSubcode(String materialSubcode) 
    {
        this.materialSubcode = materialSubcode;
    }

    public String getMaterialSubcode() 
    {
        return materialSubcode;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setMaterialUnit(String materialUnit) 
    {
        this.materialUnit = materialUnit;
    }

    public String getMaterialUnit() 
    {
        return materialUnit;
    }
    public void setBarcodeNumber(String barcodeNumber) 
    {
        this.barcodeNumber = barcodeNumber;
    }

    public String getBarcodeNumber() 
    {
        return barcodeNumber;
    }
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }
    public void setWarehouseQuantity(BigDecimal warehouseQuantity) 
    {
        this.warehouseQuantity = warehouseQuantity;
    }

    public BigDecimal getWarehouseQuantity() 
    {
        return warehouseQuantity;
    }
    public void setStorageLocationCode(String storageLocationCode) 
    {
        this.storageLocationCode = storageLocationCode;
    }

    public String getStorageLocationCode() 
    {
        return storageLocationCode;
    }
    public void setStorageLocationQuantity(BigDecimal storageLocationQuantity) 
    {
        this.storageLocationQuantity = storageLocationQuantity;
    }

    public BigDecimal getStorageLocationQuantity() 
    {
        return storageLocationQuantity;
    }
    public void setQualityControl(String qualityControl) 
    {
        this.qualityControl = qualityControl;
    }

    public String getQualityControl() 
    {
        return qualityControl;
    }
    public void setQualityNode(String qualityNode) 
    {
        this.qualityNode = qualityNode;
    }

    public String getQualityNode() 
    {
        return qualityNode;
    }
    public void setQualityProcess(String qualityProcess) 
    {
        this.qualityProcess = qualityProcess;
    }

    public String getQualityProcess() 
    {
        return qualityProcess;
    }
    public void setInspectionItem(String inspectionItem) 
    {
        this.inspectionItem = inspectionItem;
    }

    public String getInspectionItem() 
    {
        return inspectionItem;
    }
    public void setSamplingQuantity(BigDecimal samplingQuantity) 
    {
        this.samplingQuantity = samplingQuantity;
    }

    public BigDecimal getSamplingQuantity() 
    {
        return samplingQuantity;
    }
    public void setInspectionLocation(String inspectionLocation) 
    {
        this.inspectionLocation = inspectionLocation;
    }

    public String getInspectionLocation() 
    {
        return inspectionLocation;
    }
    public void setRecordNumber(String recordNumber) 
    {
        this.recordNumber = recordNumber;
    }

    public String getRecordNumber() 
    {
        return recordNumber;
    }
    public void setInspectorEmployeeId(String inspectorEmployeeId) 
    {
        this.inspectorEmployeeId = inspectorEmployeeId;
    }

    public String getInspectorEmployeeId() 
    {
        return inspectorEmployeeId;
    }
    public void setInspectorName(String inspectorName) 
    {
        this.inspectorName = inspectorName;
    }

    public String getInspectorName() 
    {
        return inspectorName;
    }
    public void setInspectionTime(Date inspectionTime) 
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime() 
    {
        return inspectionTime;
    }
    public void setInspectionResult(String inspectionResult) 
    {
        this.inspectionResult = inspectionResult;
    }

    public String getInspectionResult() 
    {
        return inspectionResult;
    }
    public void setAuditor(String auditor) 
    {
        this.auditor = auditor;
    }

    public String getAuditor() 
    {
        return auditor;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }
    public void setResultApplication(String resultApplication) 
    {
        this.resultApplication = resultApplication;
    }

    public String getResultApplication() 
    {
        return resultApplication;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryName", getFactoryName())
            .append("factoryCode", getFactoryCode())
            .append("inspectionType", getInspectionType())
            .append("inspectionNumber", getInspectionNumber())
            .append("warehouseEntryNumber", getWarehouseEntryNumber())
            .append("materialName", getMaterialName())
            .append("materialSubcode", getMaterialSubcode())
            .append("supplierName", getSupplierName())
            .append("materialUnit", getMaterialUnit())
            .append("barcodeNumber", getBarcodeNumber())
            .append("batchNumber", getBatchNumber())
            .append("warehouseQuantity", getWarehouseQuantity())
            .append("storageLocationCode", getStorageLocationCode())
            .append("storageLocationQuantity", getStorageLocationQuantity())
            .append("qualityControl", getQualityControl())
            .append("qualityNode", getQualityNode())
            .append("qualityProcess", getQualityProcess())
            .append("inspectionItem", getInspectionItem())
            .append("samplingQuantity", getSamplingQuantity())
            .append("inspectionLocation", getInspectionLocation())
            .append("recordNumber", getRecordNumber())
            .append("inspectorEmployeeId", getInspectorEmployeeId())
            .append("inspectorName", getInspectorName())
            .append("inspectionTime", getInspectionTime())
            .append("inspectionResult", getInspectionResult())
            .append("auditor", getAuditor())
            .append("auditTime", getAuditTime())
            .append("resultApplication", getResultApplication())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
